

import copy from './packages/copy'
import longpress from './packages/longpress'
import debounce from './packages/debounce'
import emoji from './packages/emoji'
import waterMarker from './packages/waterMarker'

const directives = {
    copy,
    longpress,
    debounce,
    emoji,
    waterMarker,
}

// 批量注册自定义指令
export default {
    install (Vue) {
        Object.keys(directives).forEach(key => {
            Vue.directive(key, directives[key])
        })
    }
}